const express = require("express");
const router = express.Router()
const {authMiddleware} = require('../middleware/admin/auth_middleware')
const UserController = require('../controller/users')


router.post('/',UserController.createUser)
router.post('/login',UserController.login)
router.get('/',authMiddleware,UserController.getUser) //authMiddleware 验证接口权限
router.patch('/',authMiddleware,UserController.updateUser) //patch 局部更新


module.exports = router
